
public class Chance extends Cards{


	

public Chance(Players[] player) {
		super(player);

	}

public void generateCard(int x, int turn){

System.out.println(x+" asd "+ turn);

if(x==2){//take a walk on boardwalk
	//wala pa
}

if(x==3){//advance to illinois
	//wala pa
}

if(x==4){//your building and load matures
players[turn].setMoney(150);
}

if(x==5){//elected as chairman
int p = players.length;
p = p*50;
players[turn].setMoney(-p);
for(int i=0;i<players.length;i++)
	if(i!=turn){
		players[i].setMoney(50);
	}
	}

if(x==6){//walk on board walk
	//wala pa
		}

if(x==7){// u are assesed for street repairs 
//wala pa
	}
if(x==8){//Advance to St.Charlse if pass go +200
	
}


if(x==10){//pay school tax
players[turn].setMoney(-150);
}

if(x==11){//take ride on reading if pass go +200
	
}

if(x==13){//poor tax
	players[turn].setMoney(-12);
}

if(x==14){//xmax fud matures
	players[turn].setMoney(100);
}

if(x==15){//pay parking fine
	players[turn].setMoney(15);
}

if(x==16){//general repairs on all house+hotel
	
}

if(x==17){//bank pays you dividend of 50
	players[turn].setMoney(50);
}
}

}
